package com.toonyoo.eurekaproducer.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class RabbitMQReceiver {

    @RabbitListener(queues = "test_queue")
    @RabbitHandler
    public void process(String message) {
        log.info("RabbitListener接收到消息 ====> " + message);
    }
}
